package com.igeekhome.microservice.feign;

import com.igeekhome.microservice.pojo.User;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 * @author yadonghe
 * @date 2020-02-24 15:13
 */
//回退处理类需要实现需要处理的接口(需要作为容器中组件)
//@Component
public class UserFeignServiceFallBack implements UserFeignService {

    @Override
    public User get(Long id) {
        return new User(id, "请求异常,请稍后再试", "",0, new BigDecimal(0));
    }
}
